package com.xique.park.constant.message;

/**
 * Created by IntelliJ IDEA.
 * 车场相关常量
 * @author Administrator
 * description:
 * path: park2020-com.jzy.constant.message-ParkDtConstants
 * date: 2020/8/20 15:39
 */
public class ParkDtConstants {
    public static final String PARK_ID = "park_id";

    public static final String GARAGE_ID = "garage_id";

    //车场模式
    public static final String MODEL = "model";
    /**边缘网关云系统*/
    public static final int MODEL_EDGE = 1;
    /**边缘计算云系统*/
    public static final int MODEL_CLOUD = 2;
    /**边缘计算云系统（云岗亭版）*/
    public static final int MODEL_GENERAL = 3;

    public static final String PAY_STAY_TIME = "pay_stay_time";

    public static final String IS_DISCOUNT = "is_discount";
    public static final int IS_DISCOUNT_Y = 1;
    public static final int IS_DISCOUNT_N = 0;
    public static final String BROADCAST_DAYS = "broadcast_days";
    public static final String RENEW_DAYS = "renew_days";

    /**军警车是否收费*/
    public static final String IS_POLICE_FEE = "is_fee_police";
    public static final int IS_POLICE_FEE_Y = 1;
    public static final int IS_POLICE_FEE_N = 0;

    /**边缘计算模式-离线是否计费*/
//    public static final String IS_OFFLINE_CHARGE = "is_offline_charge";
//    public static final int IS_OFFLINE_CHARGE_Y = 1;
//    public static final int IS_OFFLINE_CHARGE_N = 0;
//    public static final String OFFLINE_CHARGE_DATE = "offline_charge_date";
    /**是否有边缘网关服务器*/
//    public static final String IS_EDGE_GATEWAY = "is_edge_gateway";
//    public static final int IS_EDGE_GATEWAY_Y = 1;
//    public static final int IS_EDGE_GATEWAY_N = 0;

    /**边缘网关IP*/
    public static final String EDGE_GATEWAY = "edge_gateway";

    /**是否一天最大收费*/
    public static final String CYCLE_MODE = "cycle_mode";
    //无一天最大收费
    public static final int CYCLE_MODE_0 = 0;
    //24小时最大收费
    public static final int CYCLE_MODE_24 = 24;
    //自然日最大收费
    public static final int CYCLE_MODE_12 = 12;

    /**是否启用一个计费周期多次停车最大收费*/
    public static final String IS_MULT_PARK_LIMIT = "is_mult_park_limit";
    //无一天最大收费
    public static final int IS_MULT_PARK_LIMIT_NO = 0;
    //24小时最大收费
    public static final int IS_MULT_PARK_LIMIT_YES = 1;

    /**是否开启剩余车位功能*/
    public static final String EN_REMAIN = "en_remain";
    //关闭剩余车位功能
    public static final int EN_REMAIN_NO = 0;
    //开启剩余车位功能
    public static final int EN_REMAIN_YES = 1;

    /**
     * 车场剩余车位
     */
    public static final String SPACE_CNT = "space_cnt";

    /**
     * mqtt主题相关
     */
    //设备发布消息的通用主题前缀
    public static final String TOPIC_COMM = "comm";
    //设备发布消息的在场车辆类信息和出入场记录类信息主题前缀
    public static final String TOPIC_EDGE = "edge";

    /**
     * MQTT设置
     */
    public static final String MQTT_DOMAIN = "mqtt_domain";
    public static final String MQTT_USR_NAME = "mqtt_usr_name";
    public static final String MQTT_USR_PWD = "mqtt_usr_pwd";
    public static final String MQTT_PORT = "mqtt_port";
    public static final String MQTT_QOS = "mqtt_qos";
    public static final String MQTT_KEEP_ALIVE = "mqtt_keep_alive";
    public static final String MQTT_DOMAIN_BAK = "mqtt_domain_bak";
    public static final String MQTT_USR_NAME_BAK = "mqtt_usr_name_bak";
    public static final String MQTT_USR_PWD_BAK = "mqtt_usr_pwd_bak";
    public static final String MQTT_PORT_BAK = "mqtt_port_bak";
    public static final String MQTT_QOS_BAK = "mqtt_qos_bak";
    public static final String MQTT_KEEP_ALIVE_BAK = "mqtt_keep_alive_bak";

}
